﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OracleClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IDAL;
using DAL;
using Model;

namespace BLL
{
    public class UserService
    {
        IUserDao userDao = new UserDao();

        public int InsertUser(User user) 
        {
            return userDao.InsertUser(user);
        }
        public int UpdateUserByUserNo(User user) 
        {
            return userDao.UpdateUserByUserNo(user);
        }
        public int DeleteUserByUserNo(User user) 
        {
            return userDao.DeleteUserByUserNo(user);
        }
        public User GetUserByNameNo(string nameNo)
        {
            return userDao.GetUserByNameNo(nameNo);
        }
        public Object GetUsersByDeptNo(string deptNo)
        {
            return userDao.GetUsersByDeptNo(deptNo);
        }
        public DataTable GetUserTableByUserNo(User user) 
        {
            return userDao.GetUserTableByUserNo(user);
        }
        public DataSet GetUserSetByUserNo(User user)
        {
            return userDao.GetUserSetByUserNo(user);
        }
    }
}
